import { Injectable } from "@angular/core";
import { Http } from '@angular/http';
import 'rxjs/add/operator/toPromise';

@Injectable()
export class OrderPhotoServices {
  constructor(private http:Http) {}
  public getPhotoByOrderId(id) {
    return this.http.get(`/api/photo/order/${id}`)
      .toPromise()
      .then(response => {
        return response.json()
      })
  }
}
